<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/1/12
  Time: 9:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>pageContext作用域</title>
</head>
<body>
    <%
        List<String> books = new ArrayList<String>();
        books.add("《三国演义》");
        books.add("《西游记》");
        books.add("《水浒传》");
        books.add("《西游记》");
        pageContext.setAttribute("books",books);
        request.getRequestDispatcher("/scope/list.jsp").forward(request,response);
    %>
    <%--  pageContext: 代表只在当前页面可以访问，只要出了这个页面就无法访问！--%>
</body>
</html>
